package com.kun.rental.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kun.rental.entity.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kun.rental.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ikun
 * @since 2024-07-04
 */
public interface ICustomerService extends IService<Customer> {

    /**
     * 删除
     * @param ids
     * @return
     */
    boolean delete(String ids);

    /**
     * 分页查询
     * @param page
     * @param customer
     * @return
     */
    Page<Customer> searchByPage(Page<Customer> page, Customer customer);


    /**
     * 根据手机号查询客户信息
     * @param customer
     * @return
     */
    Customer selectByCustomerByTelephone(Customer customer);
}
